package com.stone.ble;

import android.content.ContentValues;

public class DataModel {
	public static final String STONE_TABLE_NAME = "stone";
	public static final String COLUMN_UI_TOP = "ui_top";
	public static final String COLUMN_UI_SUB = "ui_sub";
	public static final String COLUMN_SWITCH_TYPE = "switch_type";
	public static final String COLUMN_ADDRESS = "address";

	private int ui_top;
	private int ui_sub;
	private int switch_type = MyConstants.TYPE_LEFT;
	private String address = "";

	public DataModel() {
	}

	public DataModel(int top, int sub) {
		ui_top = top;
		ui_sub = sub;
	}

	public int getUi_top() {
		return ui_top;
	}

	public void setUi_top(int ui_top) {
		this.ui_top = ui_top;
	}

	public int getUi_sub() {
		return ui_sub;
	}

	public void setUi_sub(int ui_sub) {
		this.ui_sub = ui_sub;
	}

	public int getSwitch_type() {
		return switch_type;
	}

	public void setSwitch_type(int switch_type) {
		this.switch_type = switch_type;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public ContentValues toContentValues() {
		ContentValues values = new ContentValues();
		values.put(COLUMN_UI_TOP, ui_top);
		values.put(COLUMN_UI_SUB, ui_sub);
		values.put(COLUMN_SWITCH_TYPE, switch_type);
		values.put(COLUMN_ADDRESS, address);
		return values;
	}

}
